Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

add analytic-utils tests and refactor#117

Merged
juanpprieto merged 3 commits into
hl-shopify-analyticsfrom
@juanpprieto/analytics-utils-tests
Jan 12, 2023
Merged

add analytic-utils tests and refactor#117
juanpprieto merged 3 commits into
hl-shopify-analyticsfrom
@juanpprieto/analytics-utils-tests

Conversation

@juanpprieto
Copy link
Copy Markdown
Contributor

Description

Adds unit tests for analytic-utils and refactor of certain utils

@github-actions
Copy link
Copy Markdown
Contributor

We detected some changes in packages/*/package.json or packages/*/src, and there are no updates in the .changeset.
If the changes are user-facing and should cause a version bump, run yarn changeset add to track your changes and include them in the next release CHANGELOG.
If you are making simple updates to examples or documentation, you do not need to add a changeset. Please also read how Hydrogen UI does versioning.

@juanpprieto juanpprieto merged commit 9e74df6 into hl-shopify-analytics Jan 12, 2023
@juanpprieto juanpprieto deleted the @juanpprieto/analytics-utils-tests branch January 12, 2023 00:11
frehner added a commit that referenced this pull request Jan 18, 2023
* working shopify analytics

* add to cart analytics

* workign all events

* file renames

* file paths

* lint

* lint

* fix nextjs app lint

* fix nextjs app lint

* test for schemas

* lint test

* fix nextjs app

* add analytic-utils tests and refactor (#117)

* add analytic-utils tests and refactor

* fix name

* fix test

* add test for coverage

* fix no product payload test

* @juanpprieto/fix-failing-tests (#120)

* add support for parsing complex gids and fix failing test

* shorten cond checks

* remove incorrect complex id parsing

* fix typo

* sendShopifyAnalytics tests

* better test naming

* lint

* some PR feedbacks

* more PR feedbacks

* lint

* more test

* more test

* better name test

* @juanpprieto/cookie util test (#121)

* fix lint complains

* fix weird ts complain

* fix format

* clean up constants

* convert ShopifyCookie to a hook

* ts clean up

* ts clean up

* more ts clean up

* more feedback

* update ShopPayButton

* make sure monorail endpoint can be updated to the shop domain alternative

* mock failed response

* add doc

* prettier

* ci browser different?

* return explicit type

* see if this works

* fix type prettier

* fix package path

* full cookie test

* prettier

* move shopify cookie constants back into cart constant

* missed a return type

* Update .changeset/plenty-moles-listen.md

Co-authored-by: Anthony Frehner <frehner@users.noreply.github.com>

* remove console log

* update exposed methods, constants, and types

* prettier

* fix file name

* fix file name again

* Small updates

Co-authored-by: Juan P. Prieto <jp@calltheguys.co>
Co-authored-by: Anthony Frehner <frehner@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants